import { Component, OnChanges, SimpleChanges } from '@angular/core';
import { slideInAnimation } from './animations';
import { RouterOutlet } from '@angular/router';
@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.less'],
  animations: [ slideInAnimation ]
})
export class AppComponent {
  title = 'test1';

  colors: string[] = ['red', 'blue', 'green', 'skyblue', 'yellogreen'];

  isShow = true;

  page: string;
  onChangeHandle(ev: any) {

    console.log(ev.target.value);
  }

  changeTab(str: string) {
    this.page = str;
  }

  getAnimationData(outlet: RouterOutlet) {
    return outlet && outlet.activatedRouteData && outlet.activatedRouteData['animation'];
  }

}
